/*
 * @Author: your name
 * @Date: 2020-10-27 01:16:53
 * @LastEditTime: 2020-10-27 19:04:43
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edi
 * @FilePath: \examlist\src\router\homeRoutes\homeRoutes.js
 */
import Home from '../../views/Home.vue'

export default [
  {
    path: '/home',
    name: 'Home',
    redirect: '/home/welcome',
    component: Home,
    meta: {
      author: ['管理员', '出题者']
    },
    children: [
      {
        path: 'welcome',
        name: 'welcome',
        meta: {
          author: ['管理员', '出题者']
        },
        id: 0,
        component: () => import(/* webpackChunkName: "Home" */ '../../components/Welcome.vue')
      },
      {
        path: 'testManage',
        name: 'testManage',
        meta: {
          author: ['管理员', '出题者']
        },
        component: () => import('../../views/Home/TestManage/index.vue'),
        title: '试题管理',
        id: 1,
        icon: 'md-american-football',
      },
      {
        // 用户管理
        path: 'usermanage',
        name: 'UserManage',
        meta: {
          author: ['管理员']
        },
        component: () => import('../../views/Home/UserManage/index.vue'),
        title: '用户管理',
        icon: 'md-person',
        id: 2,
      },
      {
        // 考试管理
        path: 'exammanage',
        name: 'ExamManage',
        meta: {
          author: ['管理员', '出题者']
        },
        component: () => import('../../views/Home/ExamManage/index.vue'),
        title: '考试管理',
        icon: 'ios-mail-outline',
        id: 3,
      },
      {
        // 班级管理
        path: 'classmanage',
        name: 'ClassManage',
        meta: {
          author: ['管理员', '出题者']
        },
        component: () => import('../../views/Home/ClassManage/index.vue'),
        title: '班级管理',
        icon: 'ios-paper',
        id: 4,
      },
      {
        // 阅卷管理
        path: 'checkPaperManage',
        name: 'CheckPaperManage',
        meta: {
          author: ['管理员', '出题者']
        },
        component: () => import('../../views/Home/CheckPaperManage/index.vue'),
        title: '阅卷管理',
        icon: 'ios-stats',
        id: 5
      }
    ]
  }
]
